package visualisation;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.border.LineBorder;

import neuralNetworks.NeuralNetwork;
import neuralNetworks.Neuron;

public class NNPanel extends JPanel {

	private static final long serialVersionUID = 7109315941954476827L;

	public NeuralNetwork<? extends Neuron> nnet;

	public NNPanel(NeuralNetwork<? extends Neuron> nn) {
		nnet = nn;
		NNetComp nnetComp = new NNetComp(nnet);
		this.add(nnetComp);
		this.setPreferredSize(new Dimension(nnetComp.getBounds().width, nnetComp.getBounds().height));
		this.setBorder(new LineBorder(Color.BLACK));
	}

}
